-
Notifications
You must be signed in to change notification settings - Fork 478
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
Katana JSONL file Issue on raw
request field
#876
Comments
Hi, there, Moreover, on my side, in addition to the method, there is also the content of the body that is not taken into account in the raw variable. I investigated the code to find its source. Firstly, it seems that this bug only affect headless mode The bug seems to come from the navigateRequest function in the pkg/engine/hybrid/crawl.go and more precisely here Here, the crawler attempts to recreate the navigation request as an http object. To recreate it, the function relies on the object When testing its behavior, it turns out that regardless of the method and body of the Navigation Request request (the input), the values issued from e.Request.Method and e.Request.PostData do not correlate. They are always equal to: This causes the initial input request to be incorrectly reconstructed. All requests that are not GET and/or with a body will not be correctly reconstructed in the output. To correct this bug, I've changed the function to Being new and having no advanced knowledge of golang . I haven't made any pull requests yet. Hopefully this comment will confirm whether this solution is acceptable. Have a nice day! Proof: |
@dogancanbakir, @ehsandeep Sorry but I made a mistake. Changing this line will solve the problem with the output but it creates another bug. |
Katana JSONL file has issues on saving
POST
requests, for Example:but it seems OK in
GET
Requests:The text was updated successfully, but these errors were encountered: