results.webkit.org: Add content hook to FlaskRequestsResponse
authorjbedard@apple.com <jbedard@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 15 Aug 2019 17:35:02 +0000 (17:35 +0000)
committerjbedard@apple.com <jbedard@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Thu, 15 Aug 2019 17:35:02 +0000 (17:35 +0000)
https://bugs.webkit.org/show_bug.cgi?id=200721

Rubber-stamped by Aakash Jain.

* resultsdbpy/resultsdbpy/flask_support/flask_testcase.py:
(FlaskRequestsResponse):
(FlaskRequestsResponse.content): Return the encoded raw bytes value of the
Response, conforming to request's API.

git-svn-id: https://svn.webkit.org/repository/webkit/trunk@248727 268f45cc-cd09-0410-ab3c-d52691b4dbfc

Tools/ChangeLog
Tools/resultsdbpy/resultsdbpy/flask_support/flask_testcase.py

index c22653e..b165099 100644 (file)
@@ -1,3 +1,15 @@
+2019-08-15  Jonathan Bedard  <jbedard@apple.com>
+
+        results.webkit.org: Add content hook to FlaskRequestsResponse
+        https://bugs.webkit.org/show_bug.cgi?id=200721
+
+        Rubber-stamped by Aakash Jain.
+
+        * resultsdbpy/resultsdbpy/flask_support/flask_testcase.py:
+        (FlaskRequestsResponse):
+        (FlaskRequestsResponse.content): Return the encoded raw bytes value of the
+        Response, conforming to request's API.
+
 2019-08-15  Alex Christensen  <achristensen@webkit.org>
 
         WKUIDelegate's webView:contextMenuDidEndForElement: should be called when context menus end
index a243e57..d54bfcc 100644 (file)
@@ -38,6 +38,10 @@ class FlaskRequestsResponse(Response):
     def text(self):
         return self.data.decode('utf-8')
 
+    @property
+    def content(self):
+        return self.data
+
     def json(self):
         return json.loads(self.text)