소스 검색

Fixed resp format

Emmanuel Peroumalnaik 11 년 전
부모
커밋
840157ee7e
1개의 변경된 파일3개의 추가작업 그리고 3개의 파일을 삭제
  1. 3 3
      lib/Selenium/Remote/Mock/RemoteConnection.pm

+ 3 - 3
lib/Selenium/Remote/Mock/RemoteConnection.pm

@@ -130,14 +130,14 @@ sub request {
             }
         }
         $self->session_store->{ $self->session_id }->{"$method $url $content"}
-          = $response
+          = $response->as_string
           if ( $self->session_id );
         return $self->_process_response( $response, $no_content_success );
     }
     if ( $self->replay ) {
         my $resp =
-          $self->session_store->{ $self->fake_session_id }
-          ->{"$method $url $content"} // HTTP::Response->new( '501',
+          HTTP::Response->parse($self->session_store->{ $self->fake_session_id }
+          ->{"$method $url $content"}) // HTTP::Response->new( '501',
             "No response available from the mocking file" );
         return $self->_process_response( $resp, $no_content_success );
     }