Skip to content

Commit

Permalink
Bump org.apache.tomcat.embed:tomcat-embed-core from 11.0.1 to 11.0.2 (#…
Browse files Browse the repository at this point in the history
…1224)

* Bump org.apache.tomcat.embed:tomcat-embed-core from 11.0.1 to 11.0.2

Bumps org.apache.tomcat.embed:tomcat-embed-core from 11.0.1 to 11.0.2.

---
updated-dependencies:
- dependency-name: org.apache.tomcat.embed:tomcat-embed-core
  dependency-type: direct:production
  update-type: version-update:semver-patch
...

Signed-off-by: dependabot[bot] <[email protected]>

* tomcat fixed headers

Signed-off-by: Gregor Zeitlinger <[email protected]>

---------

Signed-off-by: dependabot[bot] <[email protected]>
Signed-off-by: Gregor Zeitlinger <[email protected]>
Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Gregor Zeitlinger <[email protected]>
  • Loading branch information
dependabot[bot] and zeitlinger authored Dec 12, 2024
1 parent 85f7800 commit 8eea9a9
Show file tree
Hide file tree
Showing 6 changed files with 5 additions and 20 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<dependency>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-core</artifactId>
<version>11.0.1</version>
<version>11.0.2</version>
</dependency>
</dependencies>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<dependency>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-core</artifactId>
<version>11.0.1</version>
<version>11.0.2</version>
</dependency>
</dependencies>

Expand Down
2 changes: 1 addition & 1 deletion examples/example-exporter-servlet-tomcat/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
<dependency>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-core</artifactId>
<version>11.0.1</version>
<version>11.0.2</version>
</dependency>
</dependencies>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
<dependency>
<groupId>org.apache.tomcat.embed</groupId>
<artifactId>tomcat-embed-core</artifactId>
<version>11.0.1</version>
<version>11.0.2</version>
</dependency>
</dependencies>

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -142,10 +142,6 @@ public void testErrorHandling() throws IOException {
assertThat(response.stringBody()).contains("Simulating an error.");
}

protected boolean headReturnsContentLength() {
return true;
}

@Test
public void testHeadRequest() throws IOException {
start();
Expand All @@ -154,11 +150,7 @@ public void testHeadRequest() throws IOException {
assertThat(size).isGreaterThan(0);
Response headResponse = scrape("HEAD", "");
assertThat(headResponse.status).isEqualTo(200);
if (headReturnsContentLength()) {
assertThat(headResponse.getHeader("Content-Length")).isEqualTo(Integer.toString(size));
} else {
assertThat(headResponse.getHeader("Content-Length")).isNull();
}
assertThat(headResponse.getHeader("Content-Length")).isEqualTo(Integer.toString(size));
assertThat(headResponse.body).isEmpty();
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,11 +7,4 @@ class TomcatIT extends ExporterIT {
public TomcatIT() throws IOException, URISyntaxException {
super("exporter-servlet-tomcat-sample");
}

@Override
protected boolean headReturnsContentLength() {
// not any more since
// https://tomcat.apache.org/tomcat-11.0-doc/changelog.html#Tomcat_11.0.0-M3_(markt)
return false;
}
}

0 comments on commit 8eea9a9

Please sign in to comment.