Skip to content

Conversation

@postmodern
Copy link

  • When using webmock, the "OK" String is not present in StringIO#status.

* When using webmock, the `"OK"` String is not present in `StringIO#status`.
postmodern added a commit to postmodern/spidr that referenced this pull request Aug 5, 2016
* Set a User-Agent to prevent open-uri from raising an exception about
  being passed a nil User-Agent.
* Found a bug in how webmock returns the HTTP status message, which
  tripped up the robots gem.
  * bblimke/webmock#642
  * fizx/robots#9
@juliend2
Copy link

juliend2 commented Nov 26, 2019

And in Webrick, for some reasons, the "OK" is actually "OK " (trailing space). So I think it's better not to rely on that "OK" to be always properly formatted or there at all.

juliend2 pushed a commit to statusmachine/robots that referenced this pull request Nov 26, 2019
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.

2 participants