Subversion Repositories Kolibri OS

Rev

Rev 8594 | Rev 8954 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 8594 Rev 8698
Line 236... Line 236...
236
					if (!strchr(http.cur_url, '?')) {
236
					if (!strchr(http.cur_url, '?')) {
237
						cache.add(http.cur_url, http.content_pointer, http.content_received, PAGE, WB1.custom_encoding);
237
						cache.add(http.cur_url, http.content_pointer, http.content_received, PAGE, WB1.custom_encoding);
238
					}
238
					}
239
					LoadInternalPage(http.content_pointer, http.content_received);
239
					LoadInternalPage(http.content_pointer, http.content_received);
240
					free(http.content_pointer);
240
					free(http.content_pointer);
241
					http.hfree();
-
 
242
				}
241
				}
243
				else if (http_get_type==IMG) {
242
				else if (http_get_type==IMG) {
244
					_IMG_RES:
243
					_IMG_RES:
245
					if (http.status_code >= 200) && (http.status_code < 300) {
244
					if (http.status_code >= 200) && (http.status_code < 300) {
246
						cache.add(cur_img_url, http.content_pointer, http.content_received, IMG, NULL);
245
						cache.add(cur_img_url, http.content_pointer, http.content_received, IMG, NULL);
247
					} else {
246
					} else {
248
						cache.add(cur_img_url, 0, 0, IMG, NULL);
247
						cache.add(cur_img_url, 0, 0, IMG, NULL);
249
					}
248
					}
250
					free(http.content_pointer);
-
 
251
					http.hfree();
249
					http.hfree();
-
 
250
					free(http.content_pointer);
252
					GetImg(false);
251
					GetImg(false);
253
				}
252
				}
254
			}
253
			}
255
			break;
254
			break;
256
		default:
255
		default:
Line 724... Line 723...
724
			WB1.custom_encoding = CH_CP866;
723
			WB1.custom_encoding = CH_CP866;
725
			ShowSource(WB1.bufpointer, _in_bufsize);
724
			ShowSource(WB1.bufpointer, _in_bufsize);
726
		} else {
725
		} else {
727
			WB1.DrawPage();
726
			WB1.DrawPage();
728
		}
727
		}
-
 
728
		http.hfree();
729
		if (WB1.img_url.count) { GetImg(true); DrawOmnibox(); }
729
		if (WB1.img_url.count) { GetImg(true); DrawOmnibox(); }
730
	}
730
	}
731
}
731
}
Line 732... Line 732...
732
 
732