RESTClient icon indicating copy to clipboard operation
RESTClient copied to clipboard

null appended to accept-language header

Open ansar opened this issue 11 years ago • 5 comments

Hello,

When we tried to add the custom header Accept-Language:fr and make the rest request, We see that null is appended, so Accept-Language header become Accept-Language:null, fr. I saw there is a code in file content/js/restclient.http.js line 46 set the accept-language as null. Could you please fix this.

Thanks and Regards, Ansar Ahmed

ansar avatar Jan 07 '14 15:01 ansar

+1

Just ran into this as well. I've added a manual workaround but a proper fix would be good.

gary-rowe avatar Aug 29 '14 15:08 gary-rowe

Been stung by this, very confusing at first. Shame because I've recommended this client quite heavily in the past, and know a fair few testers who rely on it.

@ansar is right, the offending line seems to be as stated, but in the latest version of the code I've tried removing this and running but no luck. The extension is also very different in terms of the UI so I think there are more changes that are in source, but not in the Firefox repo. I'm afraid I lack any real knowledge about Firefox extensions, all I can confirm is simply removing that line does not work for me (Windows 7 where this was tested).

Finglas avatar Feb 17 '15 10:02 Finglas

This issue persists, any solution?

"Accept-Language": "null, de",

BojanKogoj avatar Jan 08 '16 08:01 BojanKogoj

Here's a link to my workaround that seems to be OK in production use:

https://github.com/bitcoin-solutions/multibit-website/blob/develop/src/main/java/org/multibit/site/servlets/SafeHeadersRequest.java

gary-rowe avatar Jan 08 '16 10:01 gary-rowe

I don't think that is a good solution for me, I would have to update two Laravel packages which is a no-go.

BojanKogoj avatar Jan 08 '16 13:01 BojanKogoj