File tree Expand file tree Collapse file tree 1 file changed +1
-4
lines changed
Expand file tree Collapse file tree 1 file changed +1
-4
lines changed Original file line number Diff line number Diff line change @@ -235,9 +235,6 @@ pub fn create_html_processor(config: HtmlProcessorConfig) -> impl StreamProcesso
235235 let patterns = patterns. clone( ) ;
236236 move |text| {
237237 let content = text. as_str( ) ;
238- if !content. contains( & patterns. origin_host) {
239- return Ok ( ( ) ) ;
240- }
241238 if let Some ( rewritten) = patterns. rewrite_nextjs_hrefs( content) {
242239 text. replace( & rewritten, ContentType :: Text ) ;
243240 }
@@ -249,7 +246,7 @@ pub fn create_html_processor(config: HtmlProcessorConfig) -> impl StreamProcesso
249246 let patterns = patterns. clone( ) ;
250247 move |text| {
251248 let content = text. as_str( ) ;
252- if !content. contains( "self.__next_f" ) || !content . contains ( & patterns . origin_host ) {
249+ if !content. contains( "self.__next_f" ) {
253250 return Ok ( ( ) ) ;
254251 }
255252 if let Some ( rewritten) = patterns. rewrite_nextjs_hrefs( content) {
You can’t perform that action at this time.
0 commit comments