Skip to content
This repository has been archived by the owner on May 7, 2021. It is now read-only.

Commit

Permalink
Support application/json Content-Type.
Browse files Browse the repository at this point in the history
  • Loading branch information
raheelh authored and sni committed Dec 22, 2016
1 parent 952e2b2 commit 4b22774
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion Webinject/lib/Webinject.pm
Expand Up @@ -959,7 +959,10 @@ sub _httppost {
my $case = shift;

if($case->{posttype} ) {
if($case->{posttype} =~ m~application/x\-www\-form\-urlencoded~mx) {
if( ($case->{posttype} =~ m~application/x\-www\-form\-urlencoded~mx)
or ($case->{posttype} =~ m~application/json~mx)
)
{
return $self->_httppost_form_urlencoded($useragent, $case);
}
elsif($case->{posttype} =~ m~multipart/form\-data~mx) {
Expand Down

0 comments on commit 4b22774

Please sign in to comment.