mirror of
https://github.com/hoppscotch/hoppscotch.git
synced 2026-04-25 08:45:58 +03:00
[GH-ISSUE #649] Failed to execute 'setRequestHeader' on 'XMLHttpRequest': '' is not a valid HTTP header field name. #229
Labels
No labels
CodeDay
a11y
browser limited
bug
bug fix
cli
core
critical
design
desktop
discussion
docker
documentation
duplicate
enterprise
feature
feature
fosshack
future
good first issue
hacktoberfest
help wanted
i18n
invalid
major
minor
need information
need testing
not applicable to hoppscotch
not reproducible
pull-request
question
refactor
resolved
sandbox
self-host
spam
stale
testmu
wip
wont fix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/hoppscotch#229
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @codeasashu on GitHub (Mar 5, 2020).
Original GitHub issue: https://github.com/hoppscotch/hoppscotch/issues/649
Describe the bug
Unable to set
application/x-www-form-urlencodedasContent-Typeheader. Setting this header gives me HTTP status code 500, however cUrl is working for the same.To Reproduce
Steps to reproduce the behavior:
POSTrequest tohttps://httpbin.org/postExpected behavior
The response should be same as the output of cUrl
curl -XPOST -H 'Content-Type: application/x-www-form-urlencoded' http://httpbin.org/postDesktop (please complete the following information):
Additional context
I am using https://postwoman.io/ to test this.
@liyasthomas commented on GitHub (Mar 5, 2020):
I couldn't reproduce the issue.
Set up 1: Set
Content-Typein request section itselfRequest
Response
As you can see, response
Content-Typeisapplication/x-www-form-urlencodedSet up 2: Set
Content-Typein Headers section itselfRequest
Response
As you can see, response
Content-Typeisapplication/x-www-form-urlencoded@codeasashu commented on GitHub (Mar 5, 2020):
Ok weird, it works now. Don't know why it happended but seems to be fixed now. I will make sure to check for anything else I might have done to cause this issue. Thanks for taking your time to reply.