Skip to content

Make notifyXml return a Buffer object#51

Merged
shime merged 1 commit intoairbrake:masterfrom
Frost:master
Feb 12, 2016
Merged

Make notifyXml return a Buffer object#51
shime merged 1 commit intoairbrake:masterfrom
Frost:master

Conversation

@Frost
Copy link
Copy Markdown
Contributor

@Frost Frost commented Feb 24, 2014

If (for example) request.body contains non-ascii characters, this caused the http request to not send the correct Content-Length header, which in turn causes errbit to not read the entire document.

I changed Airbrake.prototype.notifyXml so that it returns a Buffer object, which will report a proper length when asked for it in Airbarke.prototype.notify.

If (for example) request.body contains non-ascii characters, this caused the http request to not send the correct `Content-Length` header, which in turn causes errbit to not read the entire document.

I changed `Airbrake.prototype.notifyXml` so that it returns a `Buffer` object, which will report a proper length when asked for it in `Airbarke.prototype.notify`.
@brodin
Copy link
Copy Markdown

brodin commented Mar 1, 2014

Status on this?

@3eggert
Copy link
Copy Markdown

3eggert commented Jan 9, 2015

Does this break something, or why is it not merged? It seems to fix the incompatibility with errbit...

@Frost
Copy link
Copy Markdown
Contributor Author

Frost commented Jan 10, 2015

The CI build failed, but that was unrelated to my changes.

And yes, this does fix the errbit incompatibility. Or at least it did 10 months ago.

shime pushed a commit that referenced this pull request Feb 12, 2016
Make notifyXml return a Buffer object
@shime shime merged commit 605266b into airbrake:master Feb 12, 2016
@brodin
Copy link
Copy Markdown

brodin commented Feb 12, 2016

Hehe - long live open source @Frost ;)

@Frost
Copy link
Copy Markdown
Contributor Author

Frost commented Feb 12, 2016

@brodin Long lived, at least ;)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants