Subversion Repositories Kolibri OS

Rev

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

Rev 8305 Rev 8319
Line 29... Line 29...
29
#include "..\lib\patterns\toolbar_button.h"
29
#include "..\lib\patterns\toolbar_button.h"
30
#include "..\lib\patterns\restart_process.h"
30
#include "..\lib\patterns\restart_process.h"
Line 31... Line 31...
31
 
31
 
Line 32... Line 32...
32
char editbox_icons[] = FROM "res/editbox_icons.raw";
32
char editbox_icons[] = FROM "res/editbox_icons.raw";
Line 33... Line 33...
33
 
33
 
34
char version[]="WebView 2.7b";
34
char version[]="WebView 2.7c";
35
 
35
 
Line 909... Line 909...
909
}
909
}
Line 910... Line 910...
910
 
910
 
911
void CheckContentType()
911
void CheckContentType()
912
{
912
{
913
	char content_type[64];
913
	char content_type[64];
914
	if (http.header_field("content-type\0", #content_type, sizeof(content_type))) // application || image
914
	if (http.header_field("content-type", #content_type, sizeof(content_type))) // application || image
915
	if (content_type[0] == 'a') || (content_type[0] == 'i') { 
915
	if (content_type[0] == 'a') || (content_type[0] == 'i') { 
916
		EventOpenDownloader(history.current());
916
		EventOpenDownloader(history.current());
917
		StopLoading();
917
		StopLoading();
918
		history.back();
918
		history.back();
Line 921... Line 921...
921
}
921
}
Line 922... Line 922...
922
 
922
 
923
void HandleRedirect()
923
void HandleRedirect()
924
{
924
{
925
	char redirect_url[URL_SIZE];
925
	char redirect_url[URL_SIZE];
926
	http.header_field("location\0", #redirect_url, URL_SIZE);
926
	http.header_field("location", #redirect_url, URL_SIZE);
927
	get_absolute_url(#redirect_url, history.current());
927
	get_absolute_url(#redirect_url, history.current());
928
	history.back();
928
	history.back();
929
	http.hfree();
929
	http.hfree();
930
	if (http_get_type==PAGE) OpenPage(#redirect_url);
930
	if (http_get_type==PAGE) OpenPage(#redirect_url);