Throw with simple error for curl
user-agent
#198
Labels
enhancement
New feature or request
Milestone
curl
user-agent
#198
The Youch error page is returned to cURL.
There's already logic to only return a pretty-error page when the request
Accept
header includestext/html
. cURL sendsAccept: */*
.Would you consider extending that check to include if the user-agent contains
curl/
, and if so, also return the simple page?miniflare/packages/http-server/src/index.ts
Lines 277 to 283 in 5d90324
The text was updated successfully, but these errors were encountered: