Skip to content
This repository has been archived by the owner on Nov 10, 2017. It is now read-only.

Truncated headers #3

Open
Sephi-Chan opened this issue Jan 12, 2011 · 1 comment
Open

Truncated headers #3

Sephi-Chan opened this issue Jan 12, 2011 · 1 comment

Comments

@Sephi-Chan
Copy link

Hi,

I'm writing a client for BeaconPush using Streamly and I encounter an issue with headers.

In my code, I have:

headers = { 'X-Beacon-Secret-Key' => 'Some secret key', 'foo' => 'bar' }
Streamly.post("#{base_url}/channels/#{channel}", JSON.dump(data), headers)

The request worked well but the response was:

{"status": 400, "message": "No secret key supplied. Use header 'X-Beacon-Secret-Key' to supply it."}

So I investigated and found that my custom headers were truncated:

fo: bar
Accept: */*
Content-Type: application/x-www-form-urlencoded
X-: acon-Secret-Key
Accept-Encoding: identity, deflate, gzip
Content-Length: 24
Host: api.beaconpush.com

I really like Streamly API so I hope there is a fix for that. ;)

@Sephi-Chan
Copy link
Author

Ping ?

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant