]> git.ipfire.org Git - thirdparty/freeradius-server.git/commitdiff
Fix content of demo http server
authorArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 22 Feb 2012 09:37:17 +0000 (10:37 +0100)
committerArran Cudbard-Bell <a.cudbardb@freeradius.org>
Wed, 22 Feb 2012 09:37:17 +0000 (10:37 +0100)
src/modules/rlm_rest/demo.pl

index 805f7c3edd0d26454705de3cfbd6847e95c29fcc..d2501e94fd915b7500639d34bb3d0e15bd12d1d1 100755 (executable)
@@ -15,14 +15,9 @@ while (my $c = $d->accept) {
                if ($r->method eq 'POST' and $r->url->path eq "/") {
                        my $resp = HTTP::Response->new( '200', 'OK' );
        
-                       #$resp->header("Content-Type" => "application/x-www-form-urlencoded");  
-                       #$resp->content("reply:User-Name=kittens&reply:Service-Type=Framed-User&reply:HP-Cos=0000&reply:HP-Bandwidth-Max-Ingress=999999999999999999999999999999999999&reply:User-Name=mittens");
+                       $resp->header("Content-Type" => "application/x-www-form-urlencoded");   
+                       $resp->content("control:Cleartext-Password=password&reply:Reply-Message=testing123");
                
-                       $resp->header("Content-Type" => "application/json");    
-                       $resp->content('{
-                               "reply|User-Name":"kittens %{User-Name}",
-                       }');
-
                        $c->send_response($resp);
                } else {
                        $c->send_error(RC_FORBIDDEN)