Changes

Summary

  1. Improve efficiency of HTML-regex-check in "extractContentTypeFromResponseBody". Some servers return the whole html-code in the first non-empty line. (commit: 56e6da1) (details)
  2. - Improve contentType detection rate from analyzing the content of the response-body, by reconnecting to the server with "GET" when the initial connection was made with "HEAD". (commit: dc6ef96) (details)
Commit 56e6da11de9eadfa4041cb9449b10954ba2929e6 by Lampros Smyrnaios
Improve efficiency of HTML-regex-check in "extractContentTypeFromResponseBody". Some servers return the whole html-code in the first non-empty line.
(commit: 56e6da1)
The file was modifiedsrc/main/java/eu/openaire/publications_retriever/util/http/ConnSupportUtils.java (diff)
Commit dc6ef96512e82639be3c3cf46118d5521bf1f82d by Lampros Smyrnaios
- Improve contentType detection rate from analyzing the content of the response-body, by reconnecting to the server with "GET" when the initial connection was made with "HEAD".
- Add the "numContentTypeExtractedFromPageContent"-counter.
(commit: dc6ef96)
The file was modifiedsrc/main/java/eu/openaire/publications_retriever/util/http/ConnSupportUtils.java (diff)
The file was modifiedsrc/main/java/eu/openaire/publications_retriever/util/http/HttpConnUtils.java (diff)
The file was modifiedsrc/main/java/eu/openaire/publications_retriever/PublicationsRetriever.java (diff)