Skip to content

Only test the first element of status #9

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

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