Skip to content
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

response interceptor doesn't chagne response content #45

Closed
stavanmehta opened this issue Feb 19, 2016 · 1 comment
Closed

response interceptor doesn't chagne response content #45

stavanmehta opened this issue Feb 19, 2016 · 1 comment

Comments

@stavanmehta
Copy link

I tried response interceptor as per your test method. But it only returns 200 status code. and doesn't change response content.
Also, I saw proxy server change at https://github.com/lightbody/browsermob-proxy project.
are you planning to update your project with littleproxy instead or Jetty?

def test_response_interceptor_with_parsing_js(self):
"""
/proxy/:port/interceptor/response
"""
js = 'alert("foo")'
status_code = self.client.response_interceptor(js)
assert(status_code == 200)

@AutomatedTester
Copy link
Owner

This project is just a client library to speak to the https://github.com/lightbody/browsermob-proxy java proxy. If you are getting a status code that doesnt match what you want then I suggest raising a bug there.

Same for the question about littleproxy/jetty

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

No branches or pull requests

2 participants