Browse Source

[5088] spelling & indent

Francis Dupont 8 years ago
parent
commit
3409be04bb

+ 1 - 1
src/lib/http/response.h

@@ -182,7 +182,7 @@ protected:
 
     /// @brief Returns current time formatted as required by RFC 1123.
     ///
-    /// This method is virtual so as it can be overriden in unit tests
+    /// This method is virtual so as it can be overridden in unit tests
     /// to return a "predictable" value of time, e.g. constant value.
     ///
     /// @return Current time formatted as required by RFC 1123.

+ 2 - 2
src/lib/http/response_creator.h

@@ -16,7 +16,7 @@ namespace http {
 /// @brief Specifies an interface for classes creating HTTP responses
 /// from HTTP requests.
 ///
-/// HTTP is designed to carry various types of the content. Most commonly
+/// HTTP is designed to carry various content types. Most commonly
 /// this is text/html. In Kea, the application/json content type is used
 /// to carry control commands in JSON format. The libkea-http library is
 /// meant to be generic and provide means for transferring different types
@@ -67,7 +67,7 @@ public:
 
 protected:
 
-    /// @brief Creates implentation specific HTTP 400 response.
+    /// @brief Creates implementation specific HTTP 400 response.
     ///
     /// @param request Pointer to an object representing HTTP request.
     /// @return Pointer to an object representing HTTP 400 response.

+ 2 - 1
src/lib/http/tests/response_creator_unittests.cc

@@ -81,7 +81,8 @@ TEST(HttpResponseCreatorTest, badRequest) {
               "Content-Length: 40\r\n"
               "Content-Type: application/json\r\n"
               "Date: Tue, 19 Dec 2016 18:53:35 GMT\r\n\r\n"
-              "{ \"result\": 400, \"text\": \"Bad Request\" }", response->toString());
+              "{ \"result\": 400, \"text\": \"Bad Request\" }",
+              response->toString());
 }
 
 // This test verifies that response is generated successfully from the