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

Truncated headers #3

@Sephi-Chan

Description

@Sephi-Chan

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. ;)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions