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

Patch for http-overflow and more switches in @http #1398

Open
wants to merge 8 commits into
base: master
Choose a base branch
from

Conversation

HarryCordewener
Copy link
Contributor

@HarryCordewener HarryCordewener commented Sep 19, 2022

Slight refactoring of the HTTP code in bsd.c and adding features to @http in cmds.c.

Added:

  • Ability to pass headers
  • Ability to use other switches

src/cmds.c Outdated Show resolved Hide resolved
src/cmds.c Show resolved Hide resolved
src/bsd.c Outdated
@@ -1202,6 +1187,7 @@ handle_curl_msg(CURLMsg *msg)
}
}
if (resp->too_big) {
pe_regs_set_int(resp->pe_regs, PE_REGS_Q, "http-overflow", 1);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should I just set this into %1?
Right now, this is being set into a q-register (and 0 never being set on success, which is bad, as it can cause false-positives) because status & content-type are being set into q-regs on completion. And changing those would be a breaking change.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Input still needed on this @talvo

@HarryCordewener
Copy link
Contributor Author

@shawnw @talvo @mike347
Throwing in another call for this.

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.

None yet

1 participant